"""
社交互动URL配置
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import PostViewSet, CommentViewSet
from .admin_views import AdminPostViewSet, AdminCommentViewSet

router = DefaultRouter()
router.register(r'posts', PostViewSet, basename='post')
router.register(r'comments', CommentViewSet, basename='comment')
router.register(r'admin/posts', AdminPostViewSet, basename='admin-post')
router.register(r'admin/comments', AdminCommentViewSet, basename='admin-comment')

urlpatterns = [
    path('', include(router.urls)),
]


